package com.ruoyi.business.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 售卖机订单信息对象 t_smj_order_info
 * 
 * @author ruoyi
 * @date 2024-11-02
 */
@Data
public class TSmjOrderInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 系统订单号 */
    @Excel(name = "系统订单号")
    private String orderCode;

    /** 支付渠道订单号 */
    @Excel(name = "支付渠道订单号")
    private String realChanleOrderNo;

    /** 机器名称 */
    @Excel(name = "机器名称")
    private String machineName;

    /** 货道 */
    @Excel(name = "货道")
    private String hdCode;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private String payAmount;

    /** 支付金额 */
    @Excel(name = "支付金额")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    /** 状态（0未匹配 1成功） */
    @Excel(name = "状态", readConverterExp = "0=未匹配,1=成功")
    private Integer status;

    private Long userId;

    private String userName;

    private String payType;

    private String merOrderNo;

    private String customOrderNo;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderCode", getOrderCode())
            .append("realChanleOrderNo", getRealChanleOrderNo())
            .append("machineName", getMachineName())
            .append("hdCode", getHdCode())
            .append("payAmount", getPayAmount())
            .append("payTime", getPayTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
